<?php
drupal_add_css (drupal_get_path ('module', 'paypal') . '/paypal.css', 'theme', 'all', false);

$output = '';

$rows = '';

$output .= theme ('table', array ('Site informations', 'Paypal informations'), array (
  array (
    array (
      'data' => drupal_render ($form['receiver_email'])
        . drupal_render ($form['private_key'])
        . drupal_render ($form['public_certificate'])
        . drupal_render ($form['return_url'])
        . drupal_render ($form['cancel_url']),
      'valign' => 'top',
      'width' => '50%'
    ),
    array (
      'data' => drupal_render ($form['url'])
        . drupal_render ($form['paypal_certificate'])
        . drupal_render ($form['certificate_id'])
        . drupal_render ($form['pdt_token'])
        . drupal_render ($form['ipnrb_url'])
        . drupal_render ($form['image']),
      'valign' => 'top',
      'width' => '50%'
    )
  ),
  array (
    array (
      'data' => theme ('fieldset', array (
        '#title' => 'Customers settings',
        '#value' => drupal_render ($form['min_amount'])
          . drupal_render ($form['roles'])
          . drupal_render ($form['currency_code'])
      )),
      'valign' => 'top',
      'width' => '50%'
    ),
    array (
      'data' => theme ('fieldset', array (
        '#title' => 'Extra settings',
        '#value' => drupal_render ($form['debug'])
      )) . drupal_render ($form['submit']),
      'valign' => 'top',
      'width' => '50%'
    )
  )
)) . drupal_render ($form);

